
function commit() {
    nav.initializeTask(0, 2, "正在提交反馈信息...")

    nav.openTask("信息反馈");

    http.post("/feedback.json", {}, {
                       nick: feedbackTxt.text,
                       description: textArea.text
                   }, commitResult)

    nav.value++
}

function commitResult(json) {
    nav.value = nav.maximumValue


    if (json.error) {
        dialog.toast(json.error.description)
        return
    }

    dialog.toast("提交成功")
}
